package com.hebeu.xwl.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

public class Log {
//    logId	int
//    userId	int
//    time	varchar
//    record	varchar
    @TableId(type = IdType.AUTO)
    private int logId;
    private int userId;
    private long time;
    private String record;

    public Log() {
    }

    public int getLogId() {
        return logId;
    }

    public void setLogId(int logId) {
        this.logId = logId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getRecord() {
        return record;
    }

    public void setRecord(String record) {
        this.record = record;
    }

    @Override
    public String toString() {
        return "Log{" +
                "logId=" + logId +
                ", userId=" + userId +
                ", time='" + time + '\'' +
                ", record='" + record + '\'' +
                '}';
    }

    public Log(int logId, int userId, long time, String record) {
        this.logId = logId;
        this.userId = userId;
        this.time = time;
        this.record = record;
    }
}
